package ZUOYE;
//继承
public class Foods extends Goods {
    public void print(Goods goods){
        setName("辣条");
        setPlace("四川");
        setType("小吃");
        setPrice(5);
        System.out.println(getType()+"类"+"\t商品名:"+getName()+"\t产地:"+getPlace()+"\t\t价格:"+getPrice()+"元");
    }
}
